#include<iostream>
#include<string>
using namespace std;

class Car{
    public:
    //use the way of initial list to define data
        Car():name("Ferrari"),price(12800000),length(3.5),
        width(1.4),height(0.8){}
        Car(Car &Car);
        //绑定数据
        Car(string name,int price,float length,float width,float height);

        string getname(){
          return name;
        }
        void setprice(int pre){
          price=pre;
        }
        int getprice(){
          return price;
        }
        void setlength(float len){
          length=len;
        }
        float getlength(){
          return length;
        }
        void setwidth(float wid){
          width=wid;
        }
        float getwidth(){
          return width;
        }
        void setheight(float hei){
          height=hei;
        }
        float getheight(){
          return height;
        }
    private:
        string name;
        int price;
        float length;//单位：米
        float width;
        float height;
};
int main(){
  Car c1;
    cout<<c1.getname()<<"\n";
    cout<<c1.getprice()<<"\n";
    cout<<c1.getlength()<<"\n";
    cout<<c1.getwidth()<<"\n";
    cout<<c1.getheight()<<"\n";
    cout<<"-----------------------"<<"\n";
    c1.setprice(3210000);
    c1.setlength(4.2);
    cout<<c1.getlength()<<"\n";
    cout<<c1.getprice()<<"\n";
  return 0;
}
